package cn.tedu.submarine;

import javax.swing.*;

/*
深水炸弹类
 */
public class Bomb extends SeaObject {
    Bomb(int x,int y){
        super(9,12,x,y,3);
    }

    /*重写Move移动*/
    public void move() {
        y += speed;
    }

    public ImageIcon getImage(){
        return Images.bomb;
    }

    /**检测炸弹越界*/
    public boolean isOutofBounds(){
        return y >= World.HEIGHT;
    }
}
